package com.topsun.protocol.server.codec;

import com.topsun.protocol.server.core.model.Message;
import com.topsun.protocol.server.session.Session;
import io.netty.buffer.ByteBuf;

/**
 * 基础消息解码
 */
public interface MessageDecoder<T extends Message> {

    T decode(ByteBuf buf, Session session);

}